import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

public final class bg {

	private int a;
	private int b;
	private int c;
	private u d;

	public bg(int i, int j, int k, u u1) {
		a = i;
		b = j;
		c = k;
		d = u1;
	}

	public final void a(Graphics g, int i, int j) {
		Image image = d.a;
		if (d != null && image != null) {
			int k = image.getWidth();
			int l = i + k;
			int i1 = i - ((c * j) / 100 + a) % l;
			g.drawImage(image, i1, b, 20);
		}
	}
}